#ifndef __UART_TOOL_H__
#define  __UART_TOOL_H__

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>

int myserialOpen (const char *device, const int baud);
void serial_sendString(int fd,const unsigned char *s,int len);
void serial_getString(int fd,unsigned char *s);
int myserialGetchar (const int fd);

#define SERIAL_DEV "/dev/ttyS5"
#define BAUD 115200

#endif
